package com.bytedance.danmaku.render.engine.demo.danmu.widget.gradienttext

import com.bytedance.danmaku.render.engine.data.DanmakuData
import com.bytedance.danmaku.render.engine.demo.utils.DRAW_TYPE_GRADIENT_TEXT
import com.bytedance.danmaku.render.engine.render.draw.DrawItem
import com.bytedance.danmaku.render.engine.render.draw.IDrawItemFactory

/**
 * @Description:渐变色文字工厂
 * @Author yanxin
 * @Date:  2025/8/19
 */

class GradientTextItemFactory : IDrawItemFactory {
    override fun getDrawType(): Int {
        return DRAW_TYPE_GRADIENT_TEXT
    }

    override fun generateDrawItem(): DrawItem<out DanmakuData> {
        return GradientTextDrawItem()
    }
}